Table of Contents

Class: ICallback .\src\TW\Callbacks.py

Encapsulate a callback with support for weak references

CallbackList expects its subscribers to adhere to this interface.

Base Classes   
Interface.Base
Methods   
__call__
__cmp__
__hash__
hasTarget
isValid
  __call__ 
__call__ (
        self,
        *args,
        *kw,
        )

Make the callback, passing in args and *kw as well

  __cmp__ 
__cmp__ ( self,  other )

Callbacks must support equality testing, even if they are only equal to themselves

  __hash__ 
__hash__ ( self )

Callbacks must be hashable

  hasTarget 
hasTarget ( self,  object )

Return true if callback is object or has object as its target

  isValid 
isValid ( self )

Return false if callback is no longer valid


Table of Contents

This document was automatically generated on Tue Mar 05 10:33:43 2002 by HappyDoc version WORKING